class Cubic {
  static easeIn(e, t, n, r) {
    return n * (e /= r) * e * e + t;
  }
  static easeOut(e, t, n, r) {
    return n * ((e = e / r - 1) * e * e + 1) + t;
  }
  static easeInOut(e, t, n, r) {
    return (e /= r / 2) < 1
      ? (n / 2) * e * e * e + t
      : (n / 2) * ((e -= 2) * e * e + 2) + t;
  }
}

export default Cubic;
